<?php if(!defined('IN_BKUP')) exit('Request Error!'); ?>

<form name="form" id="form" method="post" action="?action=import">
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="ltable">
		<tr align="center">
			<th width="5%"  class="firstCol"><input type="checkbox" name="checkall" onclick="CheckAllBtn(form)" value="check" checked="checked" /></th>
			<th align="left" width="30%">文件名</th>
			<th width="30%">文件大小[共<?php if(isset($files_size)){echo GetRealSize($files_size);}else{echo '0B';} ?>]</th>
			<th width="20%">备份时间</th>
			<th width="15%" class="endCol">操作</th>
		</tr>
		<?php 
		if(isset($bfiles) && is_array($bfiles))
		{
			foreach($bfiles as $s)
			{
		?>
		<tr align="center" class="dataTr" onmouseover="this.className='dataTrOn'" onmouseout="this.className='dataTr'">
			<td  class="firstCol"><input name="tbname[]" type="checkbox" value="<?php echo $s['name']; ?>" checked="checked" /></td>
			<td align="left" ><?php echo $s['name']; ?></td>
			<td><?php echo $s['size']; ?></td>
			<td class="number"><?php echo $s['mktime']; ?></td>
			<td class="action endCol"><span class="nb"><a href="javascript:if(confirm('您确实要删除此备份文件？'))location.href='?action=import&dopost=del&dirname=<?php echo $tbname; ?>&tbname=<?php echo $s['name']; ?>'">删除</a></span></td>
		</tr>
		<?php 
			}
			$conut = count($bfiles);
		}
		else
		{
		?>
		<tr>
			<td colspan="5" class="dataEmpty">暂时没有备份文件</td>
		</tr>
		<?php
			$conut = 0;
		}
		?>
	</table>
	<div class="line20"></div>
<div class="pagelist">
  <div class="l-btns">
    <span>选择：</span><span><a href="javascript:CheckAll(form,true);">全部</a></span> - <span><a href="javascript:CheckAll(form,false);">无</a> </span> - <span> <a href="javascript:Repair('?action=import&dopost=delall&dirname=<?php echo $tbname; ?>');" onclick="return ConfDel(form);">删除</a> </span> 
		<input type="hidden" name="dirname" value="<?php echo $tbname; ?>" />
  </div>

		<a href="#" onclick="Repair('?action=import&dopost=reset');" class="dataBtn">还原备份文件</a> </div>
</form>
<div class="pagelist"><div style="text-align:center;padding:10px;font-size:12px;color:#333">
	共<span><?php echo $conut; ?></span>个SQL文件</div>
</div>



<div class="quickToolbar">
	<div class="qiuckWarp">
		<div class="pagelist">
  <div class="l-btns">
    <span>选择：</span><span><a href="javascript:CheckAll(form,true);">全部</a></span> - <span><a href="javascript:CheckAll(form,false);">无</a> </span> - <span> <a href="javascript:Repair('?action=import&dopost=delall&dirname=<?php echo $tbname; ?>');" onclick="return ConfDel(form);">删除</a> </span> 
		<input type="hidden" name="dirname" value="<?php echo $tbname; ?>" />
  </div>

		<a href="#" onclick="Repair('?action=import&dopost=reset');" class="dataBtn">还原备份文件</a> </div>
	</div>
</div>
